/* 文章详情页样式 */
.article-detail {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    background: linear-gradient(45deg, var(--light), var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.author-name {
    font-weight: 500;
    font-size: 1.1rem;
}

.meta-details {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.meta-details span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.article-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    background: rgba(52, 152, 219, 0.2);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: white;
}

.article-cover {
    height: 350px;
    background: linear-gradient(45deg, #3498db, #9b59b6);
    border-radius: 10px;
    margin: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: white;
}

.article-content {
    margin: 3rem 0;
}

.article-intro {
    background: rgba(44, 62, 80, 0.4);
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    margin-bottom: 2rem;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.content-body {
    line-height: 1.8;
}

.content-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-body p {
    margin-bottom: 1.2rem;
    color: #e0e0e0;
}

pre {
    background: #1e1e2e;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

code {
    font-family: 'Source Code Pro', monospace;
    font-size: 0.95rem;
}

.content-image {
    margin: 2rem 0;
    text-align: center;
}

.content-image i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
}

.image-caption {
    color: var(--gray);
    font-size: 0.9rem;
    font-style: italic;
}

.article-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-sharing {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-sharing a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transition: var(--transition);
}

.social-sharing a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.prev-article, .next-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(44, 62, 80, 0.4);
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
}

.prev-article:hover, .next-article:hover {
    background: rgba(44, 62, 80, 0.7);
    transform: translateY(-3px);
}

.prev-article i, .next-article i {
    font-size: 1.5rem;
    color: var(--primary);
}

.prev-article h4, .next-article h4 {
    font-size: 1rem;
    color: var(--light);
    margin-top: 0.3rem;
}

.prev-article span, .next-article span {
    font-size: 0.9rem;
    color: var(--gray);
}

/* 评论区样式 */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.comments-section h3 span {
    color: var(--primary);
    font-size: 1.2rem;
}

.comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.comment-avatar {
    min-width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--warning), var(--danger));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.form-group {
    flex: 1;
}

.form-group textarea {
    width: 100%;
    height: 120px;
    background: rgba(44, 62, 80, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: white;
    font-family: inherit;
    resize: vertical;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-actions {
    text-align: right;
    margin-top: 1rem;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comment:last-child {
    border-bottom: none;
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 500;
    color: var(--primary);
}

.comment-date {
    color: var(--gray);
    font-size: 0.9rem;
}

.comment p {
    color: #d0d0d0;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.8rem;
}

.comment-actions a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: var(--transition);
}

.comment-actions a:hover {
    color: var(--primary);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .article-cover {
        height: 250px;
        font-size: 4rem;
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation {
        flex-direction: column;
    }

    .prev-article, .next-article {
        width: 100%;
    }
}